import { computed } from 'vue';
import { IConfigItem } from '@/components/SearchArea';

export const useTableSearch = () => {
  const searchConfig = computed<IConfigItem[]>(() => {
    return [
      {
        name: '菜单名',
        valueName: 'name',
        component: 'input',
        props: { placeholder: '请输入名称' },
      },
    ];
  });

  return {
    searchConfig,
  };
};
